import request from '@/utils/request.ts'

export default {
    read(query) {
        return request({
            url: '/res/plc/a/read',
            method: 'get',
        })
    },
    write(data) {
        return request({
            url: '/res/plc/a/write',
            method: 'post',
            data,
        })
    },
    end(query) {
        return request({
            url: '/res/plc/a/end',
            method: 'get',
        })
    },
    start(data) {
        return request({
            url: '/res/plc/a/start',
            method: 'post',
            data,
        })
    },
    isRunning() {
        return request({
            url: '/res/plc/a/isRunning',
            method: 'get',
        })
    }
}
